package com.codelint.gt20post.codec;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

/**
 * Created with IntelliJ IDEA.
 * User: gzhang
 * Date: 5/27/13
 * Time: 9:32 PM
 * To change this template use File | Settings | File Templates.
 */
public class GT20CodecFactory implements ProtocolCodecFactory {
    public ProtocolEncoder getEncoder(IoSession ioSession) throws Exception {
        return new GT20Encoder();
    }

    public ProtocolDecoder getDecoder(IoSession ioSession) throws Exception {
        return new GT20Decoder();
    }
}
